package cz.muni.fi.pa165.musiclibrary.implejb.service.dto.translator;

import org.apache.commons.lang3.Validate;

import cz.muni.fi.pa165.musiclibrary.api.database.entity.IArtist;
import cz.muni.fi.pa165.musiclibrary.api.service.dto.IArtistDTO;
import cz.muni.fi.pa165.musiclibrary.implejb.service.dto.ArtistDTO;

/**
 *
 * @author Martin Szabo
 * 2012-10-28T22:42:56+0100
 */
public final class ArtistDTOTranslator {
    
    
//    /**
//     * Translates {@link IArtist} object into {@link IArtistDTO} object.
//     * @param artist Artist.
//     * @return Instance of {@link IArtistDTO} that corresponds with given parameter.
//     * @throws IllegalArgumentException If parameter is {@code null}.
//     */
//    public static IArtistDTO translateToDTO(final IArtist artist) {
//        Validate.isTrue(artist != null, "Artist should not be null.");
//        final IArtistDTO artistDTO = new ArtistDTO();
//        artistDTO.setIdArtist(artist.getIdArtist());
//        artistDTO.setName(artist.getName());
//        artistDTO.setDescription(artist.getDescription());
//        return artistDTO;
//    }
//    
//    /**
//     * Translates {@link IArtistDTO} object into {@link IArtist} object.
//     * @param artist ArtistDTO.
//     * @return Instance of {@link IArtist} that corresponds with given parameter.
//     * @throws IllegalArgumentException If parameter is {@code null}.
//     */
//    public static IArtist translateFromDTO(final IArtistDTO artistDTO) {
//        Validate.isTrue(artistDTO != null, "ArtistDTO should not be null.");
//        final IArtist artist = new Artist();
//        artist.setIdArtist(artistDTO.getIdArtist());
//        artist.setName(artistDTO.getName());
//        artist.setDescription(artistDTO.getDescription());
//        return artist;
//    }
}
